from flask import Blueprint
from flask_swagger_ui import get_swaggerui_blueprint

bp = Blueprint('api', __name__, url_prefix='/api/v1')

# 导入所有路由
from app.api import knowledge_base, document, chat, system_prompt  # 添加 system_prompt

# Swagger UI 配置
SWAGGER_URL = '/api/docs'
API_URL = '/static/swagger.json'

swagger_ui_blueprint = get_swaggerui_blueprint(
    SWAGGER_URL,
    API_URL,
    config={
        'app_name': "Knowledge Base API"
    }
) 